/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ove.palette.swing;

/**
 *
 * @author Mr.Sam
 */
import javax.swing.*;
import fr.ove.palette.*;
import fr.ove.palette.swing.*;

/**
* The palette containing the basic operators : +, -, *, /, ^.
*
* @author © 1999 DIRAT Laurent
* @version 1.0  19/09/1999
*/
public class BasicOperatorsPalette extends Palette {
    /**
    * The constructor.
    */
    public BasicOperatorsPalette() {
        super(PaletteLayout.COLUMN_CONSTRAINT, 2);
        addButtonToPalette(new JPaletteButton(new ImageIcon("fr/ove/palette/images/operator/bi_plus.gif")), new PaletteInfo("+",  (byte) 0));
        addButtonToPalette(new JPaletteButton(new ImageIcon("fr/ove/palette/images/operator/plus.gif")), new PaletteInfo("+",  (byte) 1));
        addButtonToPalette(new JPaletteButton(new ImageIcon("fr/ove/palette/images/operator/bi_minus.gif")), new PaletteInfo("-",  (byte) 0));
        addButtonToPalette(new JPaletteButton(new ImageIcon("fr/ove/palette/images/operator/minus.gif")), new PaletteInfo("-",  (byte) 1));
        addButtonToPalette(new JPaletteButton(new ImageIcon("fr/ove/palette/images/operator/bi_mult.gif")), new PaletteInfo("*",  (byte) 0));
        addButtonToPalette(new JPaletteButton(new ImageIcon("fr/ove/palette/images/operator/mult.gif")), new PaletteInfo("*",  (byte) 1));
        addButtonToPalette(new JPaletteButton(new ImageIcon("fr/ove/palette/images/operator/bi_div.gif")), new PaletteInfo("/",  (byte) 0));
        addButtonToPalette(new JPaletteButton(new ImageIcon("fr/ove/palette/images/operator/div.gif")), new PaletteInfo("/",  (byte) 1));
        addButtonToPalette(new JPaletteButton(new ImageIcon("fr/ove/palette/images/operator/bi_power.gif")), new PaletteInfo("^",  (byte) 0));
        addButtonToPalette(new JPaletteButton(new ImageIcon("fr/ove/palette/images/operator/power.gif")), new PaletteInfo("^",  (byte) 1));
    }
}
